package com.sikaryofficial.backend.domain.dto.req;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * 屏蔽对象
 *
 * @author qinjinyuan
 * @date 2023-11-16
 */
@Getter
@Setter
@ToString
@ApiModel(value = "屏蔽对象入参", description = "屏蔽对象入参")
public class ShieldReq implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 屏蔽记录ID
     */
    @JsonIgnore
    private Long shieldRecId;

    /**
     * 被屏蔽对象ID
     */
    @ApiModelProperty(value = "被屏蔽对象ID", required = true)
    private Long objectId;

    /**
     * 业务类型：1-店铺,2-评论,3-评论回复
     */
    @ApiModelProperty(value = "业务类型：1-店铺,2-评论,3-评论回复,5-文章内容,6-文章评价内容,7-文章评价回复内容", required = true)
    @Min(value = 1, message = "businessType could not less than 1")
    @Max(value = 7, message = "businessType could not greater than 7")
    private Integer businessType;
}
